﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="UserInfoDetail.aspx.cs" Inherits="Page_UserInfoDetail" Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript" src="../Js/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="../Js/jquery-1.2.6-vsdoc.js"></script>
    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        function saveInfo() {
            document.getElementById("<%=btnSave.ClientID %>").click();
            alert("保存成功！");
            try{
            window.opener.document.getElementById("ctl00_ListToolBarPlaceHolder_btnRefresh").click();
            }catch(Error)
            {
            }
            window.close();
        }
        function resetInfo() {
            $("input:text:not('#<%=tbThirdLevelDeptDisplayName.ClientID %>')").val("");
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" id="tblOperator" runat="server">
        <tr runat="server" id="trToolMenu">
            <td class="ToolMenu">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="saveInfo();">
                    <span>
                        <img src="../Images/Icon/Object/tz-add.gif" alt="" /></span><span>保存</span>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenu">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="resetInfo();">
                    <span>
                        <img src="../Images/Icon/Object/tz-add.gif" alt="" /></span><span>取消</span>
                </div>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="详细" Selected="true" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <div style="display: none;">
        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" />
        <asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" />
    </div>
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <table id="tblDetail" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门：</strong></a>
                                <asp:TextBox ID="tbThirdLevelDeptDisplayName"  CssClass="Textbox01" ReadOnly="true" runat="server"></asp:TextBox></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</strong></a>
                                <asp:TextBox ID="tbFullName"  CssClass="Textbox01" runat="server"></asp:TextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</strong></a>
                                <asp:RadioButtonList RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server" ID="rblSex">
                                    <asp:ListItem Text="男" Value="男" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="女" Value="女"></asp:ListItem>
                                </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>岗&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：</strong></a>
                                <asp:TextBox ID="tbStation"  CssClass="Textbox01" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级：</strong></a>
                                <asp:TextBox ID="tbPositionLevel"  CssClass="Textbox01" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr id="trAttachment" runat="server" style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2" style="margin-left:1px;">
                                <a class="blue-01"><strong>出生年月： </strong></a>
                                <asp:TextBox onClick="WdatePicker()" CssClass="Textbox01" ID="tbBirthday" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr id="tr1" runat="server" style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>籍&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贯： </strong></a>
                                <asp:TextBox ID="tbNativePlace"  CssClass="Textbox01" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr id="tr2" runat="server" style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>民&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;族： </strong></a>
                                <asp:TextBox ID="tbBackNvarchar1"  CssClass="Textbox01" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr id="tr3" runat="server" style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>政治面貌： </strong></a>
                                <asp:TextBox ID="tbBackNvarchar2"  CssClass="Textbox01" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    
    var height = document.body.clientHeight; var trInfo1 = document.getElementById("trInfo1");
    var MainContent1 = document.getElementById("MainContent1"); if (height > 111 + trInfo1.offsetHeight)
    { MainContent1.style.height=(height-111-trInfo1.offsetHeight)+"px"; } var MainContent2
    = document.getElementById("MainContent2"); if (height > 111 ) { MainContent2.style.height=(height-111)+"px";
    }
</asp:Content>
